package com.glodon.quartz;

import com.glodon.spring.enty.BulletinEntity;
import com.glodon.spring.service.BulletinService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by Administrator on 2017-5-23.
 */
public class TestQuartz extends AbstractScheduledJob{

    private static final Logger log = LoggerFactory.getLogger(TestQuartz.class);

    @Autowired
    private BulletinService bulletinService;

    @Override
    public void doTask() {

        BulletinEntity bulletinEntity = bulletinService.queryById("0000000051900b400151900e86fc0002");

        log.info("任务:{} - 调度开始    值：{}", "TestQuartz", bulletinEntity.toString() );
    }
}
